﻿<controls:ChildWindow x:Class="AppLab.Views.MobileBasicInfo.Adaptation"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="380" Height="180" 
           xmlns:local="clr-namespace:AppLab">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid.Resources>
            <local:BooleanToVisibilityConverter x:Key="VisibleConverter"/>
        </Grid.Resources>

        <StackPanel Orientation="Vertical">
            <TextBlock Name="tbMobile" Foreground="Blue"></TextBlock>

            <StackPanel Orientation="Horizontal" Margin="20,10,0,0">
                <RadioButton Name="rbWap" Content="Wap适配" GroupName="AdaptationType" Checked="rbWap_Checked" />
                <RadioButton Name="rbClient" Content="Client适配" GroupName="AdaptationType" Margin="40,0,0,0" Checked="rbClient_Checked" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="20,10,0,0">
                <TextBlock Text="适配状态："></TextBlock>
                <ComboBox Name="cbAdaptationStatus" Width="90" />
                <TextBlock Text="开发商：" Margin="20,0,0,0" Visibility="{Binding ElementName=rbClient, Path=IsChecked,Converter={StaticResource VisibleConverter}}"/>
                <ComboBox Name="cbPartners" Width="90" Margin="13,0,0,0" Visibility="{Binding ElementName=rbClient, Path=IsChecked,Converter={StaticResource VisibleConverter}}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="20,10,0,0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="创建时间："></TextBlock>
                    <TextBox Name="AdaptationBeginTime" Text="2010-11-30" Width="90" />
                </StackPanel>
                <StackPanel Orientation="Horizontal" Margin="20,0,0,0">
                    <TextBlock Text="修改时间："></TextBlock>
                    <TextBox Name="AdaptationEndTime" Text="2010-11-30"  Width="90"/>
                </StackPanel>
            </StackPanel>
        </StackPanel>
        <Button x:Name="CancelButton" Content="取消" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,0,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="确定" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,0,79,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>